//This file is part of FireworksCreator.
//
//FireworksCreator is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.
//
//FireworksCreator is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//
//You should have received a copy of the GNU General Public License
//along with FireworksCreator.  If not, see <http://www.gnu.org/licenses/>.
//
#ifndef _PTPAGE_H
#define _PTPAGE_H
//
#include <model/particletemplate_fwd.h>
#include "objectpage.h"
//
class ObjTreeView;
class PTGenericView;
class PTTimeMarkListView;
class PTPage:public ObjectPage
{
   Q_OBJECT
   Q_DISABLE_COPY(PTPage)
//construction
public:
   PTPage(MainView *p_main_view,QWidget *p_parent=0);
//ObjectPage
protected:
   void handle_activate();
   void handle_deactivate();
//object
public:
   void set_pt(model::ParticleTemplate *p_pt);
   model::ParticleTemplate *get_pt() const;
//implementation
private:
   ObjTreeView *objects_view;
   PTGenericView *generic_view;
   PTTimeMarkListView *tm_view;
   QWidget *build_contained_widget();
   QWidget *build_generic_widget();
   QWidget *build_texture_widget();
   QWidget *build_tm_widget();
};
//
#endif
